<%--
  Created by IntelliJ IDEA.
  User: 42890
  Date: 2020/3/18
  Time: 9:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="javabean.Title" %>
<html>
<head>
    <title>图书列表</title>
    <jsp:useBean id="dao" class="java.TitleDao2" scope="request"/>
</head>
<body>
<table bgcolor="#deb887">
    <tr>
        <td>ISBN</td>
        <td>书名</td>
        <td>版权</td>
        <td>日期</td>
        <td>价格</td>
    </tr>
    <%List list=dao.getList();
    Title title=null;
    for (int i=0;i<list.size();i++)
    {
        title=(Title)list.get(i);
    }
    %>
    <tr bgcolor="#fff8dc">
        <td><%=title.getIsbn()%></td>
        <td><%=title.getTitle()%></td>
        <td><%=title.getPublisherId()%></td>
        <td><%=title.getPublisherId()%></td>
        <td><%=title.getPrice()%></td>
    </tr>
</table>
</body>
</html>
